<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>用户信息</h2>
<div>
    <p>ID:<span th:text="${user.id}"></span></p>
    <p>名字:<span th:text="${user.name}"></span></p>
    <p>年龄:<span th:text="${user.age}"></span></p>
</div>
</body>
</html>